package com.cmc.cloud.cmclink.doc.vo.sovo.sosplitcombinedetailvo;

import com.cmc.cloud.cmclink.doc.vo.sovo.socargovo.SoCargoSplitCombineVO;
import com.cmc.cloud.cmclink.doc.vo.sovo.soforecastvo.SoForecastSplitCombineVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import java.util.List;

/**
 * 订舱主Response VO
 *
 * @author 陈正
 */
@Schema(description = "管理后台 - 订舱split VO")
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class SoSplitCombineInfoReqVO {

    @Schema(description = "订舱号")
    @Length(max = 20, message = "{sosplitcombineinfo.bookingno.length}")
    private String bookingNo;

    @Schema(description = "订舱预配信息")
    private List<SoForecastSplitCombineVO> soForecastList;

    @Schema(description = "订舱货物信息")
    private List<SoCargoSplitCombineVO> soCargoList;

    @Schema(description = "客户参考号")
    @Length(max = 50, message = "客户参考号支持最大长度{max}")
    private String referenceNo;

}
